package ${servicePackage};

import org.spa.common.api.vo.Result;
import ${entityPackage}.${entity};

/**
 * 描述: ${table.comment}
 * author: ${author}
 * date: ${date}
 */
public interface ${entity}Service {

    /**
	 * 添加
	 *
	 * @param ${entity?uncap_first}
	 * @return
	 */
	Result<?> insert(${entity} ${entity?uncap_first});
	
	/**
	 * 编辑
	 *
	 * @param ${entity?uncap_first}
	 * @return
	 */
	Result<?> updateById(${entity} ${entity?uncap_first});
	
	/**
	 * 通过id删除
	 *
	 * @param id
	 * @return
	 */
	Result<?> deleteById(int id);
	
	/**
	 * 通过id查询
	 *
	 * @param id
	 * @return
	 */
	Result<?> selectById(int id);
}